<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<title></title>
<%@ include file="/common/publicJS.jsp"%>
<script type="text/javascript" src="${ctx}/script/business/ContentInfoDefault.js"></script>
<script language="javascript" src="${ctx}/script/jquery/jquery-ui-1.8.15.custom.min.js"></script>
<script type="text/javascript" src="${ctx}/script/jquery/jquery.timers.js"></script>
<script type="text/javascript">


<c:if test="${not empty msg}">
				alert('${msg}');
			</c:if>
			$(function() {
				$( "#tabs" ).tabs({
					selected:${(empty tabIndex)?0:tabIndex},
					select: function(event, ui) { $("#tabIndex").val(ui.index);}
				});

				//每30分钟执行刷一次页面
				$('body').everyTime('3hs',function(){
					$("#refreshWFbut").click();
				});
			});

		</script>
</head>
<body>
	<form method="post" action="" id="WfViewForm" style="display:none">
		<input type="hidden" id="tabIndex" name="tabIndex" value="${(empty tabIndex)?0:tabIndex}" /> <br />
		<div id="checkinDiv" style="text-align: right; wdith: 100%">
			<input type="button" id="refreshWFbut" value="刷新" onclick="refreshWF()" /><span style="width:30px">&nbsp; </span>
		</div>
		<div id="tabs">
			<ul>
				<li><a href="#tabs-1">待办任务</a>
				</li>
				<li>
					<a href="#tabs-2">已办任务</a>
				</li>
				<li><a href="#tabs-3">公司公告</a>
				</li>
			</ul>
			<div id="tabs-1" style="width: 100%; text-align: center">
				<display:table name="taskList" id="task" style="width: 95%" class="table" pagesize="10"
					requestURI="assign-jsp!toContentInfoDefault.action">
					<display:column property="name" title="流程名" />
					<display:column property="processInstanceDesc" title="说明" style="width: 35%" />
					<display:column property="createTime" title="开始时间" />
					<display:column property="previousPersonName" title="上环节人员" />
					<display:column title="操作">
						<a href="#" onclick="toWFView('${task.formResourceName}?taskId=${task.id}&executionId=${task.executionId}')">处理</a>
					</display:column>
				</display:table>
			</div>
							<div id="tabs-2" style="width: 100%">
								<display:table name="taskHistoryList" id="task" style="width: 95%" class="table" pagesize="10" requestURI="">
									<display:column property="activityName" title="流程名" />
									<display:column property="description" title="说明" style="width: 35%" />
									<display:column property="createTime" title="开始时间" />
									<display:column property="endTime" title="结束时间" />
														<display:column title="操作">
															查看
															<a href="#" onclick="toWFView('${task.formResourceName}?taskId=${task.id}')">查看</a>
														</display:column>
								</display:table>
							</div>
			<div id="tabs-3" style="width: 100%">
				<table class="table" style="width: 95%">
					<tr>
						<td style="width: 120px">公司 邮箱</td>
						<td><a href="#" onclick="javaScript:window.open('http://mail.epdylk.com/')">主地址</a>
						</td>
					</tr>
					<tr>
						<td style="width: 120px">公司论坛系统</td>
						<td><a href="#" onclick="javaScript:window.open('http://epdylk.xicp.cn:8090/bbs')">主地址</a>&nbsp;&nbsp; <a
							href="#" onclick="javaScript:window.open('http://cnepdylk.gicp.net:8090/bbs')">备用地址</a>
						</td>
					</tr>
					<tr>
						<td style="width: 120px">公司文件服务器系统</td>
						<td><a href="#" onclick="javaScript:window.open('http://epdylk.xicp.cn:800')">主地址</a>&nbsp;&nbsp; <a href="#"
							onclick="javaScript:window.open('http://cnepdylk.gicp.net:800')">备用地址</a>
						</td>
					</tr>
					<tr>
						<td style="width: 120px">公司视频会议</td>
						<td><a href="#" onclick="javaScript:window.open('http://www.ppmeet.com/')">主地址</a>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</form>
</body>
</html>
